<div class="span4" style="margin:0px 15px;margin-left: 0px;">
        <table class="table table-striped table-bordered box">
            <thead>
                <tr>
                    <th colspan="1"> <i class="icon-book"></i>   <?=lang('label_user_last_item')?></th>
                </tr>
            </thead>
            <tbody>
                <?
                $r = 0;
                if (is_array($last_item)) {


                    foreach ($last_item as $val) {
                        $r++;
                        ?>
                        <tr>
                            <td><a href="<?=base_url().ADMIN_FOLDER?>/orders/view/<?=$val->id?>"><?
                        if(empty($val->title)){
                           echo  substr($val->store, 0,43); 
                        }else{
                          echo  substr($val->title, 0,43);  
                        }
                            ?></a>..</td>
                        </tr>

                        <?
                    }
                }
                ?>

            </tbody>

        </table>

    </div> 